import request from 'src/utils/request';

export const login = (account: string, password: string) => {
  return request.post(`/auth/login`, { account, password });
};
export const refreshToken = (token: string) => {
  return request.get(`/auth/refresh`, {
    params: {
      token
    }
  });
};
export const getProfile = () => {
  return request.get(`/user/profile`);
};

export default {
  login,
  refreshToken,
  getProfile
};
